package com.baofu.paycore.dal.mapper;

import com.baofu.paycore.dal.mapper.base.GenericMapper;
import com.baofu.paycore.dal.model.ClearBankDO;
import org.apache.ibatis.annotations.Param;

/**
 * 充值提现银行单信息对象
 * <p>
 *   1.依支付单号查询充值提现银行单信息
 * </p>
 * User: kwl  Date: 2016/05/09 ProjectName: paycore Version: 5.0.0
 */
public interface ClearBankMapper extends GenericMapper<ClearBankDO> {

    /**
     * 依支付单号查询充值提现银行单信息
     *
     * @param fundDetailNo      资金单号
     * @return                  充值提现银行单信息
     */
    ClearBankDO queryClearBankByPayNo(@Param("fundDetailNo") String fundDetailNo);

    /**
     * 依支付单号查询充值提现银行单信息
     *
     * @param payNo             主单号
     * @return                  充值提现银行单信息
     */
    ClearBankDO queryClearBankInfo(@Param("payNo") String payNo);
}
